package com.example.mypotiota_si.Activity;

import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.mypotiota_si.R;

public class DiZhi_TianJiaActivity extends AppCompatActivity {
    private Button dz_tj;
    private ImageView dz_fh;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_di_zhi__bian_ji);
        //隐藏标题栏
        ActionBar actionBar=getSupportActionBar();
        if (actionBar!=null){
            actionBar.hide();
        }
        //获取控件
        dz_tj=findViewById(R.id.dz_tj);
        dz_fh=findViewById(R.id.dz_fh);
        //点击事件
        init_dj();
    }

    //点击事件
    private void init_dj() {
        //点击返回
        dz_fh.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        //点击提交
        dz_tj.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(DiZhi_TianJiaActivity.this,WoDe_DiZhiActivity.class);
                startActivity(intent);
            }
        });
    }
}
